package com.qike.duola.enums;

import com.qike.duola.vo.EnumList;

import java.util.ArrayList;
import java.util.List;

/**
 * 审批流程枚举
 * 状态 0 审批中 1审批完成 2 未开始
 */
public enum MessageTitleEnums {
    ACTIVE                      ("您有新的活动通知"),
    APPROVAL                      ("提交了审批"),
    ;

    private String emsg;

    MessageTitleEnums( String emsg) {
        this.emsg = emsg;
    }



    public String getEmsg() {
        return emsg;
    }

    public List<EnumList> getEnumList(){
        List<EnumList> lists = new ArrayList<>();
        for (MessageTitleEnums state : values()){
            EnumList enumList = new EnumList();
            enumList.setValue(state.getEmsg());
            lists.add(enumList);
        }
        return lists;
    }
}
